import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom'
import { Spin } from '@arco-design/web-react';
import './index.css';
import App from './App';
import "@arco-design/web-react/dist/css/arco.css";
const root = ReactDOM.createRoot(document.getElementById('root'));
function listen () {
  if (document.readyState == 'complete') {
    root.render(
      <BrowserRouter>
        <App />
      </BrowserRouter>
    );
  } else {
    root.render(
      <Spin dot />
    );
  }
}
document.onreadystatechange = listen


